package com.its.search.domain;

import lombok.Data;
import org.springframework.data.elasticsearch.annotations.CompletionField;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;

import java.util.List;

@Document(indexName = "goods",createIndex = false)
@Data
public class GoodsEs {
    @Field
    private Integer gid;

    @Field
    private String goodsName;

    @Field
    private String goodsPrice;

    @Field
    private String goodsType;

    @Field
    private String goodsInventory;

    @Field
    private String goodsImages;

    @CompletionField
    private List<String> tags; // 关键字
}
